package com.yue.jersey.practice.resource;

import com.yue.jersey.practice.provider.RetryProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * Created by qiuyang on 16/02/2017.
 */
@Path("retry")
@Component
public class RetryResource {
    @Autowired
    private RetryProvider retryProvider;


    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String retryTest(){
        retryProvider.retryTest();
        return "retry";
    }
}
